projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a9944c
)
list box: Remove unnecessary checks
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 17 Jul 2015 22:40:11 +0000
(18:40 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 17 Jul 2015 22:40:11 +0000
(18:40 -0400)
Again, coverity takes these as clues to complain.
gtk/gtklistbox.c
patch
|
blob
|
history
diff --git
a/gtk/gtklistbox.c
b/gtk/gtklistbox.c
index 3a5c6d6b79aa734c2a336f2eb3721212012d033a..ee70f58c80426115af588bd513145d561db41888 100644
(file)
--- a/
gtk/gtklistbox.c
+++ b/
gtk/gtklistbox.c
@@
-2200,9
+2200,9
@@
gtk_list_box_update_header (GtkListBox *box,
return;
row = g_sequence_get (iter);
+ g_object_ref (row);
+
before_iter = gtk_list_box_get_previous_visible (box, iter);
- if (row)
- g_object_ref (row);
before_row = NULL;
if (before_iter != NULL)
{
@@
-2250,8
+2250,7
@@
gtk_list_box_update_header (GtkListBox *box,
}
if (before_row)
g_object_unref (before_row);
- if (row)
- g_object_unref (row);
+ g_object_unref (row);
}
static void